From dbc8a9969cc7dc40721238602e59a2c27b0450d2 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 1 Jul 2006 09:37:24 +0100 Subject: [PATCH] [LIBXC] Fix the 64-bit build. Signed-off-by: Keir Fraser --- tools/libxc/xc_hvm_build.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c index 96c9796466..8ad53abde3 100644 --- a/tools/libxc/xc_hvm_build.c +++ b/tools/libxc/xc_hvm_build.c @@ -4,6 +4,7 @@ #define ELFSIZE 32 #include +#include #include "xg_private.h" #include "xc_elf.h" #include @@ -188,7 +189,7 @@ static int setup_guest(int xc_handle, unsigned char e820_map_nr; struct domain_setup_info dsi; - unsigned long long v_end; + uint64_t v_end; unsigned long shared_page_frame = 0; shared_iopage_t *sp; @@ -208,11 +209,11 @@ static int setup_guest(int xc_handle, v_end = (unsigned long long)memsize << 20; IPRINTF("VIRTUAL MEMORY ARRANGEMENT:\n" - " Loaded HVM loader: %016llx->%016llx\n" - " TOTAL: %016llx->%016llx\n", + " Loaded HVM loader: %016"PRIx64"->%016"PRIx64"\n" + " TOTAL: %016"PRIx64"->%016"PRIx64"\n", dsi.v_kernstart, dsi.v_kernend, dsi.v_start, v_end); - IPRINTF(" ENTRY ADDRESS: %016llx\n", dsi.v_kernentry); + IPRINTF(" ENTRY ADDRESS: %016"PRIx64"\n", dsi.v_kernentry); if ( (v_end - dsi.v_start) > ((unsigned long long)nr_pages << PAGE_SHIFT) ) { -- 2.30.2